.ant-pro-top-nav-header-logo {
  position: relative;
  overflow: hidden;
  min-width: 165px;
  height: 100%;
  margin-right: 25px;

  img {
    display: inline-block;
    vertical-align: middle;
    height: 32px;
  }

  h1 {
    display: inline-block;
    vertical-align: top;
    margin: 0 0 0 12px;
    color: rgb(0 0 0 / 85%);
    font-size: 16px;
  }
}

.ant-pro-global-header {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 24px;
  background: #fff;
  box-shadow: 0 1px 4px rgb(0 21 41 / 8%);

  > * {
    height: 100%;
  }

  &-top {
    .ant-menu-horizontal > .ant-menu-submenu {
      top: unset;
    }
  }

  &-collapsed-button {
    display: flex;
    align-items: center;
    margin-left: 24px;
    font-size: 20px;
  }

  &-logo {
    position: relative;
    overflow: hidden;

    a {
      display: flex;
      align-items: center;
      height: 100%;

      img {
        height: 28px;
      }

      h1 {
        height: 32px;
        margin: 0 0 0 12px;
        font-weight: 600;
        font-size: 18px;
        line-height: 32px;
      }
    }
  }

  &-layout-mix {
    background: #001529;

    .anticon {
      color: #fff;
    }
  }

  &-layout-mix &-logo {
    h1 {
      color: #fff;
    }
  }

  .ant-menu-horizontal {
    border-bottom: none !important;
  }

  &-inverted {
    --hover-color: rgb(42 44 55);

    background: #001529;
    color: rgb(229 224 216 / 85%);
    box-shadow: 0 1px 4px rgb(0 21 41 / 8%);

    .ant-pro-top-nav-header {
      &-logo {
        h1 {
          color: rgb(229 224 216);
        }
      }
    }
  }
}

[data-theme='dark'] .ant-pro-top-nav-header-logo {
  h1 {
    color: rgb(229 224 216 / 85%);
  }
}

[data-theme='dark'] .ant-pro-global-header {
  background: #001529;
  box-shadow: rgb(13 13 13 / 65%) 0 2px 8px 0;

  &-layout-mix {
    background: rgb(15 28 41);

    .anticon {
      color: rgb(229 224 216);
    }

    .ant-pro-global-header {
      &-logo {
        h1 {
          color: rgb(229 224 216);
        }
      }
    }
  }

  &-layout-top,
  &-layout-side {
    background-color: rgb(36 37 37);
  }
}
